<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东登录</title>
    <style>
        body {
            font-family: "Microsoft YaHei", sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .login-container {
            background-color: white;
            width: 350px;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            text-align: center;
        }
        .logo {
            margin-bottom: 20px;
        }
        .logo img {
            width: 120px;
        }
        .login-form input {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .login-btn {
            width: 100%;
            padding: 12px;
            background-color: #e93b3d;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
        }
        .login-btn:hover {
            background-color: #d33436;
        }
        .other-options {
            margin-top: 20px;
            font-size: 14px;
            color: #666;
        }
        .other-options a {
            color: #e93b3d;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <div class="logo">
            <img id="logo" src="img/logo.png" alt="网站Logo">
        </div>
        <div class="login-form">
            <input type="text" placeholder="用户名/手机号/邮箱">
            <input type="password" placeholder="密码">
            <button class="login-btn">登录</button>
        </div>
        <div class="other-options">
            <a href="register.html">立即注册</a> | 
            <a href="#">忘记密码</a>
        </div>
    </div>
    <script>
    document.addEventListener('DOMContentLoaded', function() {
        // 当DOM内容完全加载后执行的匿名函数
        document.querySelector('.logo img').addEventListener('click', function() {
            window.location.href = 'index.html';
        });
    });
    </script>
</body>
</html>